<template>
	<div>
      	<div class="swiper">
			<van-swipe :autoplay="3000" indicator-color="#fff">
			  <van-swipe-item v-for="(item,index) in list" :key="index" @click="a(item.picUrl)">
			    <img :src="item.picPath"/>
			  </van-swipe-item>
			</van-swipe>     		
      	</div>
	</div>	
</template>

<script>
import {getFun} from '@/api/publicFun.js'	 
let publicFun=getFun()	
export default {	
	data() {
       return {
          list:[]
       }
	},
	methods: {	
       getData(){
       	  let that=this
	      this.$Axios.Get(this.$api+'/marketorderservice/api/v1/market/goods/pictureList/1/5')
	      .then(function(res) {
              that.list=res.data.picList
	      })       	
       },
       a(url){
       	 window.location.href=url
       }
	},
	mixins:[publicFun],//混入		
	mounted() {
		// this.getData()
	}
}	
</script>

<style scoped="">
.swiper{margin-top: 94px;margin-bottom: 20px;}
.swiper img{width: 100%;}
</style>